<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理后台</title>
<link href="Css/css.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript">
<!--
function fnOnPageChanged(page) {
	g('search').action += '&page='+page;
	document.search.submit();
}
function g(id) {
	return document.getElementById(id);
}
function fnOnCreated() {
	var url = '<?php echo $this->_url('Create',array('type'=>$type)); ?>';
	document.location.href = url;
}

// -->
</script>
<style type="text/css">
<!--
body {
	background-color: #ddeef2;
}
-->
</style>
</head>
<body>
<div id="main_title"><a href="#">后台管理中心</a>—<?php echo $listTitle; ?>
</div>
<div id="main_list">
<form name="search" id="search" method="post" action="<?=$this->_url('Import')?>" enctype="multipart/form-data">
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
  <tr>
    <td align="center" width="10%">部门：</td>
    <td align="center" width="15%">
    <select name="department" size="1" id="department">
	  <option value="0">--请选择--</option>
		<?php
        if (isset($article['department'])) {
        	$selectedClasses = (array)$article['department'];
        } else {
            $selectedClasses = array();
        }
        foreach ($deptclasses as $class){
        ?>
        <option value="<?php echo $class['name']; ?>"<?php if (in_array($class['class_id'], $selectedClasses)): ?>selected<?php endif; ?>><?=$class['name']?></option>
        <?php 
		}
        ?>
    </select>
    </td>
    <td align="center" width="10%">年：</td>
    <td align="center" width="10%">
      <select name="year" id="year">
    	<option value="<?=date("Y")-1?>"><?=date("Y")-1?></option>
        <option value="<?=date("Y")?>" selected="selected"><?=date("Y")?></option>
        <option value="<?=date("Y")+1?>"><?=date("Y")+1?></option>
      </select>
    </td>
    <td align="center" width="10%">月：</td>
    <td align="center" width="15%">
      <select name="month" id="month">
      <?php
      for($i=1;$i<=12;$i++){
	  ?>
    	<option value="<?=$i?>" <?php if($i==date("m")) echo 'selected="selected"';?>><?=$i?></option>
      <?php
      }
	  ?>
      </select>
    </td>
    <td align="center" width="20%"><input name="postfile" id="postfile" type="file" /></td>
    <td align="center"><input type="submit" name="csvInput" id="csvInput" value="导入" /></td>
  </tr>
</table>
</form>
</div>
<div id="main_copy">Copyright&copy;2003 – 2009 ITeam Monkey. All Rights Reserved ITeam Monkey 版权所有 </div>
</body>
</html>
